package com.wuzhi.shop.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 想要调用远程服务：
 *  1.引入open-feign。
 *  2.编写接口，通过注册中心调用远程服务。
 *  3.添加标签@EnableFeignClients，开启远程调用功能,并且告诉接口包的位置。
 *  想要用nacos
 *  1.配置文件写上地址和名字
 *  2.添加标签@EnableDiscoveryClient，添加到nacos中
 */

@EnableFeignClients(basePackages = "com.wuzhi.shop.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class ShopMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShopMemberApplication.class, args);
    }

}
